//
//  imageView.m
//  XinLang_OC
//
//  Created by WONG on 16/6/11.
//  Copyright © 2016年 cheuhui. All rights reserved.
//

#import "ImageView.h"

static CGFloat const MinimumZoomScale = 0.5;

@implementation ImageView{
    CGAffineTransform _transform;
}

/// 监听transform的值,如果被设置的小于最小缩放比例,我们自己在设置成最小缩放比例
/// 覆盖属性
- (void)setTransform:(CGAffineTransform)transform {
   
    NSLog(@"%@",NSStringFromCGAffineTransform(transform));
    
    if (transform.a < MinimumZoomScale) {
        transform.a = MinimumZoomScale;
        transform.d = MinimumZoomScale;
    }
    _transform = transform;
}




@end
